import request from '@/utils/request'

// 查询摄像机列表
export function listVideoCamera(query) {
  return request({
    url: '/videoCamera/videoCamera/list',
    method: 'get',
    params: query
  })
}


// 查询智能机列表
export function lamplist(query) {
  return request({
    url: '/videoCamera/videoCamera/lamplist',
    method: 'get',
    params: query
  })
}

// 查询摄像机详细
export function getVideoCamera(id) {
  return request({
    url: '/videoCamera/videoCamera/' + id,
    method: 'get'
  })
}

// 新增摄像机
export function addVideoCamera(data) {
  return request({
    url: '/videoCamera/videoCamera',
    method: 'post',
    data: data
  })
}

// 修改摄像机
export function updateVideoCamera(data) {
  return request({
    url: '/videoCamera/videoCamera',
    method: 'put',
    data: data
  })
}

// 删除摄像机
export function delVideoCamera(id) {
  return request({
    url: '/videoCamera/videoCamera/' + id,
    method: 'delete'
  })
}



